package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.domain.TreeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 采集商品类目业务对象 erp_collect_product_category
 *
 * @author erp
 * @date 2023-03-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductCategoryBo extends TreeEntity<ErpCollectProductCategoryBo> {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;
    private String ancestors;

    /**
     * 类目名称
     */
    @NotBlank(message = "类目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;
    private String ruName;
    private String ptName;
    private String inName;
    private String frName;
    private String enName;
    private String esName;

    /**
     * 类目状态
     */
    @NotNull(message = "类目状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 乐观锁
     */
    private String revision;
    
    /**
	 * 是否是叶子，false：不是，true：是
	 */
	private Boolean isleaf;


}
